package com.exm.sql.filter;


import com.exm.sql.exception.ToeknExpirationException;
import com.exm.sql.model.vo.ResponseResult;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.*;
 
/**
 * @author mijiupro
 */
@RestControllerAdvice(basePackages = "com.exm.sql.controller")
@ResponseBody
public class GlobalExceptionHandler {
 
 
 
    // 密码错误异常
    @ExceptionHandler(ToeknExpirationException.class)
    public ResponseResult handlePasswordErrorException(ToeknExpirationException ex) {
        return ResponseResult.tokenError();
    }
 


}